package com.yanqu.road.entity.activity;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_u_item_recycle")
public class ActivityItemRecycleData extends DataObject {
    @FieldTypeAnnotation(select = true)
    private int itemId;
    @FieldTypeAnnotation(update = true)
    private int activityType;
    @FieldTypeAnnotation(update = true)
    private int recycleType;
    @FieldTypeAnnotation(update = true)
    private long recycleTime;
    @FieldTypeAnnotation(update = true)
    private List<String> paramList = new ArrayList<>();
    private boolean needRecycle;
    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        if (!Objects.equals(this.itemId, itemId)) {
            this.itemId = itemId;
            setUpdateOption();
        }
    }

    public int getActivityType() {
        return activityType;
    }

    public void setActivityType(int activityType) {
        if (!Objects.equals(this.activityType, activityType)) {
            this.activityType = activityType;
            setUpdateOption();
        }
    }

    public int getRecycleType() {
        return recycleType;
    }

    public void setRecycleType(int recycleType) {
        if (!Objects.equals(this.recycleType, recycleType)) {
            this.recycleType = recycleType;
            setUpdateOption();
        }
    }

    public long getRecycleTime() {
        return recycleTime;
    }

    public void setRecycleTime(long recycleTime) {
        if (!Objects.equals(this.recycleTime, recycleTime)) {
            this.recycleTime = recycleTime;
            setUpdateOption();
        }
    }

    public boolean isNeedRecycle() {
        return needRecycle;
    }

    public void setNeedRecycle(boolean needRecycle) {
        if (!Objects.equals(this.needRecycle, needRecycle)) {
            this.needRecycle = needRecycle;
            setUpdateOption();
        }
    }

    public List<String> getParamList() {
        return paramList;
    }

    public void setParamList(List<String> paramList) {
        if (!Objects.equals(this.paramList, paramList)) {
            this.paramList = paramList;
            setUpdateOption();
        }
    }
}
